<?php
 
$host = 'localhost'; // MYSQL database host adress
$db = 'ewec_local'; // MYSQL database name
$user = 'root'; // Mysql Datbase user
$pass = '1234'; // Mysql Datbase password
 
// Connect to the database
$link = mysql_connect($host, $user, $pass);
mysql_select_db($db);
 
require 'exportcsv.inc.php';
 
$table="type_of_business"; // this is the tablename that you want to export to csv from mysql.
exportMysqlToCsv($table,"table5.cvs");
 
?>